package com.ruoyi.common.net.mqtt.multi;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.integration.annotation.IntegrationComponentScan;

/**
 * @author xumh
 * @title: MqttMultiConfiguration
 * @description: TODO
 * @date 2024/12/1815:04
 */
@Configuration
@IntegrationComponentScan
@ConditionalOnProperty(
        name = {"mqtt.enable"},
        matchIfMissing = false,
        havingValue = "true"
)
public class MqttMultiConfiguration {
    public MqttMultiConfiguration() {
    }

    @Bean
    public MqttClientManager mqttClientManager() {
        return new MqttClientManager();
    }
}
